package com.thinklib.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewController {

    @RequestMapping("upload")
    public String upload() {
        return "upload";
    }

    @RequestMapping("register")
    public String register() {
        return "register";
    }

    /**
     * 拦截器token过期，跳转首页去登录
     * @return
     */
    @RequestMapping("/go_index")
    public static String goIndex() {
        return "index";
    }
}
